-- GENERATED SPELL FOR [Xavian Felsworn] --


function spell0_3755(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(6223,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3755', 18000, 1)
end

function spell1_3755(pUnit, Event) --@Gift of the Xavian,Self--
pUnit:FullCastSpellOnTarget(6925,pUnit)
pUnit:RegisterEvent('Sorts_3755', 5000, 1)
end

function Sorts_3755(pUnit, Event)
local choix_sorts_3755 = math.random(0, 1)
if choix_sorts_3755 == 0 then
pUnit:RegisterEvent('spell0_3755', 1, 1)
end
if choix_sorts_3755 == 1 then
pUnit:RegisterEvent('spell1_3755', 1, 1)
end
end

function mob3755_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3755', math.random(1500, 3000), 1)
end

function mob3755_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3755_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3755_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3755, 1, 'mob3755_Action')
RegisterUnitEvent(3755, 2, 'mob3755_Leave')
RegisterUnitEvent(3755, 3, 'mob3755_Kill')
RegisterUnitEvent(3755, 4, 'mob3755_Die')
